// 环境配置
const env = import.meta.env.MODE || 'development';

const config = {
  development: {
    baseURL: '',  // 开发环境使用空字符串，让代理生效
    timeout: 5000,
    uploadURL: '/upload'
  },
  production: {
    baseURL: 'https://guoji.zbvc-quest.com',  // 生产环境使用完整HTTPS URL
    timeout: 10000,
    uploadURL: '/upload'
  },
  test: {
    baseURL: 'http://localhost:8090',
    timeout: 5000,
    uploadURL: 'http://localhost:8090/upload'
  }
};

export default config[env];